
def before(f):
	def wrapper():
		print 'before function'
		f()
	return wrapper

def after(f):
	def wrapper():
		f()
		print 'after function'
	return wrapper

@before
@after
def func():
	print 'this is function'

if __name__ == '__main__':
	func()
